package com.ojoin.trade.common.constdef;

public interface IConstDef {
	
	String loginTypeParamKey="loginType";
	//九盈登录现在支付
	String loginType_IpayNow="ipaynow";
	//保理系统登录
	String loginType_Factor="factor";
	
	String loginType_Factor_Wechat="factor_Wechat";
	
	//后台管理系统权限 1放款 2查看
	 int ADMINUSER_POWERTYPE_CREDIT = 1;
	
	 int ADMINUSER_POWERTYPE_LOOK = 2;
	 
	//保理系统权限 1初审 2放款
	String OPERATOR_POWERTYPE_PREAPPROVESTR = "preapprove";
		
	String OPERATOR_POWERTYPE_CREDITSTR = "credit";
		
	int OPERATOR_POWERTYPE_PREAPPROVE = 1;
		
	int OPERATOR_POWERTYPE_CREDIT = 2;
	
	//贷款类型 0 T+0贷款  1 T+1贷款
	 int LOANTYPE_BEFORE = 0;
	
	 int LOANTYPE_AFTER = 1;
	
	//T+0贷款申请状态 1申请中 2申请被拒 3初步申请通过 4申请成功）
	 int LOANLIVETYPE_DOING = 1; //存量商户提交申请
	
	 int LOANLIVETYPE_REFUSE = -1; //申请被拒
	
	 int LOANLIVETYPE_SETRATE = 2; //现在支付客户经理谈妥手续费率是否包含利率，如不包含，设置其利率值
	
	 int LOANLIVETYPE_CREDIT = 3; //保理员授信，设置日限额和单笔限额值，生成保理合同、账户变更申请书
	
	 int LOANLIVETYPE_CONTRACTSIGNING = 4; //签订保理合同，提交账户变更申请书
	 
	 int LOANLIVETYPE_USERCOMMITPASS = 5; //用户提交账户变更表审核通过
	
	 int LOANLIVETYPE_USERCOMMITNOTPASS = 6; //用户提交账户变更表审核不通过
	
	 int LOANLIVETYPE_ACCCHANGEPASS = 7; //放款初审，结算账户已变更
	 
	 int LOANLIVETYPE_STOPAPPLY = 8; //申请终止T+0业务
	 
	 int LOANLIVETYPE_STOPED = 9; //已终止T+0业务
	
	//T+1贷款申请状态
	 int T1_LOANLIVETYPE_DOING = 1; //商户提交申请
	 
	 int T1_LOANLIVETYPE_APPROVED = 2; //商户成功开通金融户，待配置授权
	 
	 int T1_LOANLIVETYPE_ACCOUNTENABLED = 3; //商户金融户授权配置完毕，业务申请成功
	 
	 int TX_LOANLIVETYPE_REFUSE = -1; //申请被拒
	 
	//贷款交易操作类型 0T0放款 1T0收款  2T1放款 3T1收款
//	 int T0_LOAN_CREDIT = 0;
//	
//	 int T0_LOAN_RETURN = 1;
//	 
//	 int T1_LOAN_CREDIT = 2;
//		
//	 int T1_LOAN_RETURN = 3;
//	 
//	 int D1_LOAN_CREDIT = 4;
//		
//	 int D1_LOAN_RETURN = 5;
	 
	 String T0_LOAN_CREDIT = "T0_LOAN_CREDIT"; //T0垫款
		
	 String T0_LOAN_RETURN = "T0_LOAN_RETURN"; //T0还款
	 
	 String T1_LOAN_CREDIT = "T1_LOAN_CREDIT"; //T1垫款
		
	 String T1_LOAN_RETURN = "T1_LOAN_RETURN"; //T1还款
	 
	 String D1_LOAN_CREDIT = "D1_LOAN_CREDIT"; //D1垫款
		
	 String D1_LOAN_RETURN = "D1_LOAN_RETURN"; //D1还款
	 
	 String TX_LOAN_DRAW = "TX_LOAN_DRAW"; //T0垫款
	 
	
	 //转账类型
	 String T0TransferType_CREDIT = "LOAN"; //放款
	
	 String T0TransferType_REFUND = "REFUND"; //还款
	 
	 String T0TransferType_RETURNBASE = "RETURNBASE"; //转回基本户
	
	 //转账操作方，如回款的自动轮询线程，其发生的转账操作operatorid则使用此常量
	 int AUTO_OPERATOR_ID = 9999;
	
	//转账操作状态 1新建 2处理中 3处理成功 4处理失败
	
	 int TRANSFERSTATUS_NEW = 1;
	
	 int TRANSFERSTATUS_PROCESSING = 2;
	
	 int TRANSFERSTATUS_SUCCESS = 3;
	
	 int TRANSFERSTATUS_FAILED = 4;
	
	//账户类型  AT01基本户  AT02理财户

    String ACCTYPE_BOTH = "ALL";

	 String ACCTYPE_BASE = "AT01";
	
	 String ACCTYPE_FINANCING= "AT02";

    //利率单位,1000表示0.005
     int RadioUnit = 1000;
    
    //分页查询所有数据
     int PageAll = Integer.MAX_VALUE;
    
    //转账不需要支付密码
     String PAYNOPWD = "PAYNOPWD";
     
    //商户类型 -个人
     String Type_INDIVIDUAL = "00";
    //商户类型 -企业
     String TYPE_ENTERPRISE = "01";
     
     //存量商户状态
     String INTENTUSER_UNCONTRACTE = "0"; //未联系
     String INTENTUSER_CONTRACTED = "1"; //已联系
     
     //放款状态
      int LOAN_APPROVED = 0; //已审核未放款 
      int LOAN_CREDITED = 1; //已放款未还款
      int LOAN_REFUNDED = 2; //已还款
      int LOAN_DRAWED = 3; //已提现
     
      String PREVIEW_CONTRACTFILE   = "保理合同.html";
      //下载文件名称
      String DOWNLOAD_CONTRACTFILE   = "保理合同.pdf";
      String DOWNLOAD_ACCCHANGEAPPLY = "账户变更申请表.pdf";
      String DOWNLOAD_USERCOMMITACCCHANGE = "待审核账户变更申请表.jpg";
      
      String DOWNLOAD_SLCONTRACTFILE   = "上下游贸易合同";
      String DOWNLOAD_SLCREDITINFOFILE   = "供应商基本情况表";
      String DOWNLOAD_SLCREDITCERTIFICATEFILE   = "授信凭证";
      String DOWNLOAD_SLUSERMATERIALFILE   = "保理合同";
      String DOWNLOAD_LOANVOUCHER="贷款初审凭证";
      String DOWNLOAD_LOANAPPLY="融资申请书";
      String DOWNLOAD_LOANCHECKACCOUNT = "对账明细单";
      String DOWNLOAD_SLCREDITCHECKCERTIFICATEFILE = "征信信息";
      String DOWNLOAD_PAYMENTORDER = "付款通知单";
      String DOWNLOAD_RENEWEDAPPLY = "展期付款申请单";
      String DOWNLOAD_CONTRACT="合同详情";
      String DOWNLOAD_LOANREGIST="动产融资登记";
      String DOWNLOAD_SLCONTRACTINFOCHECK   = "合同信息核查表";
      String DOWNLOAD_SLMORTGAGEINFO   = "抵押信息";
      String DOWNLOAD_SLDAILYLOAN = "供应链贷融资日报";
      String DOWNLOAD_TXCHECKACCOUNT = "垫款业务对账表";
      
      //回款文件下载FTP信息
      String FTP_OUT_IP = "file.ipaynow.cn";
//      String FTP_OUT_IP_DEV = "192.168.0.110";
      String FTP_IN_IP = "192.168.104.11";
      int FTP_OUT_PORT = 10411;
      int FTP_IN_PORT = 22;
      String FTP_T0_USERNAME = "join_t0";
      String FTP_T0_PASSWORD = "join_t0_ipaynow";
      String FTP_T1_USERNAME = "join_d1";
      String FTP_T1_PASSWORD = "join_d1_ipaynow";
      
      int FTP_FILETYPE_T0_CREDIT = 1; //T+0放款
      int FTP_FILETYPE_T0_RETURN = 2; //T+0回款
      int FTP_FILETYPE_T1_CREDIT = 3; //T+1放款
      int FTP_FILETYPE_T1_RETURN = 4; //T+1回款
      int FTP_FILETYPE_D1_CREDIT = 5; //D+1放款
      int FTP_FILETYPE_D1_RETURN = 6; //D+1回款
      
      int FTP_FLAG_UNDOWNLOAD = 0; //未下载
      int FTP_FLAG_DOWNLOADED_SUCCESS = 1; //已成功下载
      int FTP_FLAG_DOWNLOADED_FAILED = 2; //下载失败
      
      int FTP_FLAG_UNDEAL = 0; //未解析
      int FTP_FLAG_DEALED_SUCCESS = 1; //已成功解析
      int FTP_FLAG_DEALED_FAILED = 2; //解析失败
      
      String T0LOANPREFIX = "LOAN";
      String T0LOANSUFFIX = "001";
      
      /**
       * -------------------各业务目录-------------------
       */
      String contractGenFileDir="T0_ContractFile_gen";
      
      String contractUserFileDir="T0_ContractFile_user";//T0变更合同目录
      


    /**
     *业务线y
     */
    int TYPE_TXLOAN=1; //Tx贷款类型
    int TYPE_SUPPLYLOAN=2;//供应链贷款类型
    int TYPE_POS=3;//pos流水贷
    int TYPE_FINICIAL=4;//理财

    /**
     * 供應鏈貸款成功與否標誌
     */
    int Failer=0;
    int Success=1;
    /**
     * 放款标志（0 上传材料 1申请放款，2初审通过，3拒绝放款，4已放款未还款，5已部分还款 6已全部还款 7展期）
     */
    int LOAN_TYPE_OF_CANCEL=-1;
    int LOAN_TYPE_OF_SUBMITFILE=0;
    int LOAN_TYPE_OF_APPLICATION=1;
    int LOAN_TYPE_OF_FIRSTTRIAL=2;
    int LOAN_TYPE_OF_REFUSE=3;
    int LOAN_TYPE_OF_NOTPAY=4;
    int LOAN_TYPE_OF_PAYPARTMENT=5;
    int LOAN_TYPE_OF_PAYALL=6;
    int LOAN_TYPE_OF_RENEWED=7;
    
    String PREVIEW_TEMPDIR="~preview~";
    
    String UPLOADSTATUS_UPLOADED = "uploaded"; //已上传未提交
    String UPLOADSTATUS_COMMITED = "commited"; //已提交
    String UPLOADSTATUS_REMOVED = "removed"; //已提交
    
    String RUNTASK_TYPE_AUTO = "auto"; //自动运行任务
    String RUNTASK_TYPE_APPEND = "append"; //补录任务
    
    String RUNTASK_STATUS_SUCCESS = "success"; //任务运行成功
    String RUNTASK_STATUS_FAILED = "failed"; //任务运行失败
    
    //实名认证校验标记 0初始化 1审批中 2审核通过 3审核未通过
    int REALNAME_STATUS_INIT = 0; //未通过
    int REALNAME_STATUS_APPLYING = 1; //审批中
    int REALNAME_STATUS_PASS = 2; //审核通过
    int REALNAME_STATUS_UNPASS = 3; //审核未通过

    //账户类型
    String CMBC_TYPE="CMBC";//民生银行类别
    String PINGAN_TYPE="PINGAN";//平安银行类别
    //重做类型操作
    String REPAY="0";//匹配还款
    String REPAYBYSELF="1";//自助还款
    String AUTOREPAY="2";//自动还款
    String LOAN="3";//放款
    
    //重做
    String ISDO="1";//已经处理完毕
    String UNDO="0";//没有处理
    
    //账号状态
    int ACCOUNT_STATUS_FREEZE = 1; //冻结
    int ACCOUNT_STATUS_UNFREEZE = 0; //解冻
    
    //异常订单业务类型
    int EXCEPTIONORDER_TYPE_RECHARGE = 1; //转账
    int EXCEPTIONORDER_TYPE_DRAW = 2; //提现
    
	//上传文件类型
    String T0_CREDIT_CERTIFICATE = "T0_CREDIT_CERTIFICATE"; //T+0授信凭证
    String T0_ACCCHANGE = "T0_ACCCHANGE"; //T+0账户变更申请表
    
    String AUTO_OPERATOR_STR="autooperator"; //自动还款操作员
    
	//T0/T1/D1回款任务 0未运行 1运行成功 2运行失败 3查询失败
	int REFUND_NORUN = 0;
	int REFUND_RUNSUCESS = 1;
	int REFUND_RUNFAILED = 2;
	int REFUND_QUERYFAILED = 3;
	
	//结算单xls模板文件名
	String T1LOAN_SETTLEMENT_REPORT = "t1loan_settlement_report"; 
	String DOWNLOAD_SETTLEMENT   = "业务结算单";
	
    String TXLOAN_CHECKACCOUNT_REPORT = "tx_checkaccounnt_report";//垫款业务对账单
    
	//短信通知标签
	String T1REFUND_TASK_SUCCESS = "t1refund_task_success"; //T1还款任务成功通知
	String T1REFUND_TASK_FAILED = "t1refund_task_failed"; //T1还款任务失败通知
	 String TXFtpFile_DealComplete="TXFtpFile_DealComplete";//垫款明细下载处理完成
	 
	int AGENTPAY_APPROVE_STATUS_COMMIT = 0;
	int AGENTPAY_APPROVE_STATUS_APPROVED = 1;
	int AGENTPAY_APPROVE_STATUS_REFUSED = -1;
}